package com.zjitc.vo.product;

import com.zjitc.pojo.Product;
import lombok.*;

@Setter
@Getter
@ToString
@NoArgsConstructor
public class FullProduct {
    private String pid;
    private String name;
    private Float marketPrice;
    private Float shelfPrice;
    private String shelfTime;
    private String imgs;
    private String detail;
    private String state;
    private Integer stock;
    private Float grade;
    private Integer monthlySales;
    private  String cid;
    private boolean isCollect;

    public FullProduct(Product product){
        this.pid = product.getPid();
        this.name = product.getName();
        this.marketPrice = product.getMarketPrice();
        this.shelfPrice = product.getShelfPrice();
        this.shelfTime = product.getShelfTime();
        this.imgs = product.getImgs();
        this.detail = product.getDetail();
        this.state = product.getState();
        this.stock = product.getStock();
        this.grade = product.getGrade();
        this.monthlySales = product.getMonthlySales();
        this.cid = product.getCid();
        this.isCollect = false;
    }

    public boolean getIsCollect() {
        return isCollect;
    }
}
